<?php
/**
* 数据模型
* @date: 2018年6月5日 上午10:12:44
* @author: xiaocui
*/

namespace app\admin666\model;

use think\Model;

class Arctiny extends Model
{
    protected $autoWriteTimestamp = true;
    
    public function arc_update($data){
        if(isset($data['id'])){
            $aid = $data['id'];
            unset($data['id']);
            $this->allowField(true)->save($data,['aid'=>$aid]);
        }else{
            $this->allowField(true)->save($data);
        }
    }
}